package com.lanyou.cook.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.lanyou.cook.entity.kettle.KettleJobEntryAttribute;

@RepositoryRestResource(exported=false)
public interface KettleJobEntryAttributeRepository
		extends JpaRepository<KettleJobEntryAttribute, Long>, JpaSpecificationExecutor<KettleJobEntryAttribute>{
	
	List<KettleJobEntryAttribute> findByCodeAndValueStrAndJobEntry_Type_Code(String code, String valueStr, String jobEntryType);
	long countByCodeAndValueStrAndJobEntry_Id(String code, String valueStr, long jobEntryId);
}
